knn example

valgrind memcheck gives https://gist.github.com/Saurabh7/8109824
results : https://gist.github.com/Saurabh7/8109872