SPARK-5017 - Use SVD to compute determinant and inverse of covariance matrix