Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
Add assert such that for all key in viewed_by, if the value is not an empty list, the list element are in fgraph.outputs.