Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
And what I mean is that you can use `defaultdict(lambda: [0])` as the compute_map.  Then you have to set all of the function inputs as 1 (Hint: fgraph.inputs).