getOverlaps function

Get overlaps from a study