Press. W. H. et al. 1992, Numerical Recipes, The Art of Scientific Computing. (Fortran Version, pp 523-528)