using geometry to find center of a circle