Not really a KNN Classifier, as much as a mass, N-dimension euclidean distance calculator.

Input is a Matrix MAT of all the points to test against (row-based), and a Vector X the point to test against. Output is a Nx1 matrix V of all the distances between X and each row of the Matrix (in order).