Implement Bitdouble decoding