write chapter 2, import nrutil.c for nrerror