Implement BitGroupOutputStream
Optimizations