Here is a solution to finding a circle that circumscribes any number of points. View the source of this page for annotated code.