Added a function to compute the condition number