Simple implementation of Naive Bayes Classifier for PHP