A High Speed VLSI Architecture for Handwriting Recognition