refactored a variable
Implemented simToset().
moved duplicate code into a helper method
Added splitMatrix().
Removed duplicate code.
Finished knn.
Fixed a bug.
Changes to test knn.
Fixed a bug.