trigrams.py redone to be more efficient

took out searches on .keys() and reduced if statements in loop
still need to convert to a while loop
trigrams.py complete and very efficient now (runs almost instantly on a book