Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
When I generate all order, it's not the sum of all order, but just the sum of current order, because in the following end of if statements, I zero it, so in next iteration for next order, the current mem will be 0 at first.