time_decompose function

Decompose a time series in preparation for anomaly detection