Bayes Classifier for PHP