Handwritten kanji recognition