gaussian elimination with partial pivoting now working