Implementation of the algorithms KNN, Kmeans, Perceptron and Genetic Algorithm