I made some corrections in Sparse.Matrix.R and try KNN Classifier in KNN Classifier.R