Word Spotting in Pre-Modern Manuscripts using Dynamic Time Warping