Correcting the score generation in k-NN classifiers. Fixes issue GC-68.