Added condition number calculation.