I thought I read this somewhere before, googling it.
Ah this is Roedy's original pdf from 2000
http://www.cs.purdue.edu/homes/jv/510s05/unmaint.pdf
I found numerical recipes in c to be pretty tricky when I started coding. It still can be unless you know the algorithms up and down (certainly with the shifted vectors/matrices...)