MATLAB realizes K nearest neighbor classification