Added initial 2-bit encoder