Implement a spam filter using Naive Bayes Algorithm. The database is from UCI spambase. Language: C++.