Memory manager class.