Modify BufferManager to get pageSize from parameter