Add a method to decode a single digit barcode.