Ternary Flexible Electro-resistive Memory Device based on Small Molecules.