adding threaded and unthreaded versions of the detrend application code; adding pmDetrendThreads functions for management