A System for Automatic Recognition of Handwritten Words