Refactor setSizeInBits
Extract buffer growth heuristic
Implement out-of-order set