sample_from_gaussian for sparse cov matrix added