Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
You don't need to check if the output is computed, as when you call it, we always know that node wasn't executed.