knn classifier accepts various data structures

Classifier can accept data structures form [NearestNeighbors](https://github.com/johnmyleswhite/NearestNeighbors.jl) package.
Yes, it should. But how should tree type be specified? Or can we check that tree implementation has nearest(t, x, k) function implemented or let it fail if not?