Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
You don't need to use last_user. To compute what is freed, check that section: 

https://github.com/Theano/Theano/blob/master/theano/gof/vm.py#L427

so don't compute last_user.