test cases for generic compareTo and equals. updated NGram's compareTo
and equals. Still not working.