Handwriting Recognition using Hidden Markov Models