An iterative technique of selecting optimal matrix character sets for handprint recognition and computer output systems