bayes classifier written in C