Analyzing Overlapping Patterns to Recognize Letters in Handwritten Words