Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
Here you can create a new `compute_map` using a [defaultdict()](https://docs.python.org/2/library/collections.html#collections.defaultdict) rather than using the one you copied from the vm.