K-Nearest Neighbors search for Unity