added the overlap calculation function, which will later be used to calculate the segmentation measures (Molina and beyond)