A Multiresolution Approach to On-line Handwriting Segmentation and Feature Extraction