Added ordering + equals methods

List of words + frequency is not output in frequency order.

Added equals(Word) and equals(String) to Word class.