Now using internal Matlab knnsearch