Added gosper's hack for next combination.