Recognition of handwritten numerals using elastic matching