Better memory management in diffCalc. Removal of lots of parallel call, and replacement with C++ routines.