Very basic implementation of Naive Bayes Classifier in PHP