handle ties in knnW in doctest
Merge pull request #262 from sjsrey/knnties

handle ties in knnW in doctest