Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
order.index(node) run in O(n). Use a counter like idx. it will be faster. Do the same in count_running_memory.