Naive Bayes and Voted Perceptron Algorithms Implementation