in reply to complementary array indices

I don't think that you have specified the problem.
Please show data set A and data set B and the resulting data set C.