Implemented two's complement encoding and got inspired by the encoding specs from some other CQL drivers