Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
view_of and viewed_by should be declared outside the loop over order. To init correctly viewed_by, you can loop over fgraph.variables.