Added begin(), end(), cbegin(), cend() to MemoryManager: it can now be used in algorithms and foreach loops