Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
You seem to have removed some information. You need to compute the mem_count, but also the current peak and the min peak found. You seem to don't compute anymore the current peak.