Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
@abergeron 
for this step, can i just use
for node in node_list:
    for i in node.inputs:
        compute_map.setdefault(i, [True,])
    for o in node.outputs:
        compute_map.setdefault(o, [False])

?