Update knnAlgorithm.java