Replaced sample_cosine_hemisphere() with CosineHemisphereSampler iterator