Added Gittins Index implementation.