Changed overlap calculations to properly account for rotated ellipses.