add fucntion predict using kNN algorithm