Use SVD for computing the condition number of matrices (#1862)
Return Inf for singular matrices.
cond(A,2) also returns NaN for all zeros input.

To fix:
cond(A,p) returns Inf for all zeros input except when p = 2.