Naive bayes spam filter with balcoding