Matrix Manipulation for Numerical Recipes