kNN recognizer now returns int