Implement bufferpool constructor and helpers