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