Coding and decoding design of ECOCs for multi-class pattern and object recognition