Adding a dir for K nearest neighbour algorithm