Worked on knn is poison. 
Known bug: error creating pointer array nArr