Numerical Recipes has a chapter on the topic.
Third Edition requires a subscription, or better, buy the book, which is a great read
if you like numerical methods. But the second edition is on-line for free:
http://www.nrbook.com/a/bookcpdf.php
See chapter 10.
Dan