counting sort, nearest k neighbors