introduced a jit for reducing vectors