knn classifier accepts various data structures

Classifier can accept data structures form [NearestNeighbors](https://github.com/johnmyleswhite/NearestNeighbors.jl) package.
Maybe this should be a parametric type?