Implement a simple bayes spam filter.