kNN Classifier written in Ruby