Character Recognition Using Functional Decomposition