knn classifier accepts various data structures

Classifier can accept data structures form [NearestNeighbors](https://github.com/johnmyleswhite/NearestNeighbors.jl) package.