generic Function added to apply bfastmonitor on a time series' id