added bitoperations (+tests) for the collapsing of objects into a byte array
format