matlab codes on handwriting recognition