Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
I really don't like the use of globals here.  You should use 1-element lists that live in the scope of summary_memory() instead.