Update KNN.m

faster distance computation using matrix operations