A handbook of numerical and statistical techniques