Merge pull request #460 from dallinb/bugfix/wrong_logic_459
Bugfix: Correct example of calculating MAX_HEAP_SIZE. Fixes #459.