base-element := some-vector[i]; left-child := some-vector[i * 2]; right-child := some-vector[i * 2 + 1];