Add working with bits and compression

Add bite coding decoding code, working with bit cube and planes
Also added compressing sequences of bits into single vector