How Naive Bayes Algorithm Works with example and full code ML