Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
At this place, I have output the dmap or vmap before. it's like {0:[0]}, I dont think we should do this i = dmap[idx] here