Improved order-based coloring to be more efficient with backtracking.