Document Classifier based on Bayes Algorithm