Added ability turn off sorting of knn_rms results, which is nice for creating a dense matrix of distances for debugging purposes.