Dynamic Programming in the Recognition of Connected Handwritten Script