Compute minimum peak

1. apply pseudo code
2. create compute_map and node_mem in new method
@abergeron 
the min_memory_generator will return 2 variables order (the order with minimum memory peak) and min_mem