Introduction to the K-Nearest Neighbor (KNN) algorithm