Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
I think we should add a condition here (and in the other version bellow):
and not isinstance(origin, theano.Constant)

We could return a view of a constant.