hpfilter function

Hodrick-Prescott filter of a time series