added function compute_mean_series.m to be able to visualize mean time series