getBreaks function

Divide the range of x into intervals, returning the breakpoints of these intervals