Advanced BitBuffer utility for java