Included straight insertion from Numerical Recipes