kNN: Add digit recognition using kNN for testing.