Complementary Switching in 3D Resistive Memory Array