Exercise on implement kNN