Blind segmentation of time-series: A two-level approach