When you're inserting the nodes, do you insert both C and C[0], C[1], C[x]. If you're, then probably you will get these warning messages. C[0], C[X] are duplicated because you have already inserted the whole array C.
Insert C or C[0], C[1], C[x] but not both of them. Hope it solves your problems.