Parallel algorithms for handwritten character recognition