added peak memory usage functionality to memory manager
Merge pull request #130 from mpetri/mem-peak

added peak memory usage functionality to memory manager