Design and optimization methodology for 3D RRAM arrays | Synapse