Interval array of in/decreasing numbers, binary search in interval array