Added TerminalSequence class to represent "sentences". Simplified the previously stupid implementation of GenerateAllPossibleTrees.