Wolfram Demonstrations: Source code
Minimal Enclosing Circle