Implemented hyperparameter sampling for gamma