Show that the sum of the squares of the distances from a point
P = (c, d) to n fixed points (a1, b1), ... ,(an, bn) is minimized when c is
the average of the x-coordinates ai and dis the average of the y-coordinates bi.