Farsi handwritten databases and offline handwritten isolated digits recognition