Added classification function to classifier; Added Validator class to test the accuracy of the classifier