Locating maximum variance segments in sequential data