Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
@nouiz 
so u mean the input variables could be a list? if there is this situation, we should do as u say