Document Image Segmentation and Compression using Artificial Neural Networks and Evolutionary Methods