optimize appendSixBit