Naive Bayes Algorithm Pseudocode