A cluster-based classification method for the recognition of unconstrained handwritten numerals