Naive Bayes AI Algorithm Implementation