Added segmented regression script