MemoryManager inherits from std::vector - simpler code
Formatting, minor changes