GammaIndex: implement gamma coding