add peak searching for change detection algorithm