kNN - mavenize, add classes, generalize