Numerical recipes example book (C). - Vetterling, William T. (Cambridge University Press, 1992)