Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
What does printing things test exactly?  I can understand that it might be useful as debugging code, but don't leave it in.