Add pivoting to LU decomposition.