Implementation of PartitionBufferMemoryManager finished, fixed compile errors