Generating Distance Matrix From Points in a 2D Plane & Classification using K-Nearest Neighbors Algorithm