Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
while debugging, you can add print. But try to don't comment assert that should stay there. Just print the stuff before the assert.