Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
remove this var. You don't need it. Use compute_map instead. Link in the URL I gave you in another comment.