Perceptron and K-Nearest Neighbor Classification