fixed sample_from_gaussian for sparse cov