get_seg_ind function

Get the indices of data points lying between two values (end > x > start).