A generalized type-II hybrid ARQ scheme