finished kNN - changed to test method