Implementation of Vision Based Page Segmentation algorithm in Java