Enable memoization to improve parsing speed.
Merge pull request #299 from Typz/memoization

Enable memoization to improve parsing speed.