Memory profiling functionalities added to experiment class. Tested ok.