added a decoder program for flash adc