Fixed partial pivotting to swap when a[k][k] is less than a certain value