Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
I checked if condition here.
If I add the "and not computed_out" here, no node will be valid.
the generator will raise errors, for the order list will be empty.