cs564 c++ project 1 - BufferManager