A VERSATILE ALGORITHM FOR LINEAR SYSTEM PROBLEMS USING ADAPTIVE PIVOTING