Machine Learning K-Nearest Neighbour, refer to  http://blog.csdn.net/suipingsp/article/details/41964713