Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
You added a bunch of useless (not that break pep8) empty line. Do you use the command `git add -p` before doing commit? This will allow you to cherry-pick the change you want to commit in that file. That way, you see if you added extra lines and you can remove them before you commit them.