Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
for this part, shall we the same way as count the running_memory_size we modified in phrase 1?