BufferManager bug fix, BufferManagerTest success, external test (multithreaded) success, SPSegment refactor