Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
Fred, the result of 8208 KB and 16400KB are calculated by same algo but with different order, I think the algo may include the size of output memory size.