Implement Knn Algorithm Using Python Dictionaries