added peak memory usage functionality to memory manager

added functionality to output the peak memory usage in bytes to the memory-manager