Recognition of ambiguous pairs of totally unconstrained handwritten numerals