Added tolerance to the pivot_row selection function.