CHANGES:

1. Switched from map to unordered_map in all cases.
2. Switched from probabilities to log probabilities in PCFG.