Finished writing naive bayes classifier.  It seems to work for the couple example I ran it on :)