Calculating the intersection of two circles