Simple naive bayes classifier for ruby