Major refactoring changes. Does not compile.
Rewrote Grammar.hs. Moved inOut algorithm to new file. Rewrote functions that calculate probabilities.