W.H. Press, Numerical Recipes in C: the art of scientific computing, Cambridge University Press, Cambridge, 2nd ed., 1992