Added comments
Added logic to select non-constant pivots with the fewest eliminations