Now creates sorted arraylist from hashmaps to give sorted list of words and number of times the words appear. Next to implement is turning this into relative frequencies and the probability vector P(w|c) for each class.
Changed classify call to train to reflect change in Bayes class.