Document Image Analysis Techniques for Handwritten Text Segmentation, Document Image Rectification and Digital Collation