An algorithm for analysis and validation of segment points on oversegmented cursive handwriting