K-Nearest Neighbor algorithm upload