Resistive switching random access memory, materials and device engineering for 3D architecture