added condition number functional
added condition number functional