greeding sorting should sucessfully work.
computing number of breakpoint working.