inverseion using cholesky works