cleaned up const semantics and DRYed up appendBitMask
moved compression into VoxelPacket class. works, but too slow for larger sizes