add @inbounds for Gamma estimation