added a segmentation method for letter detection
added multi-scale analysis to original method