Added Java unit test, data, and main method for Naive Bayes

Also fixes mains of a few other algorithms to print the final model