Decoder for AZTEC and its variations