idea for running derivative calc

no R code yet; see comments in src/running_derivative.c