Crossbar array based on tri-valued memristors: its design and application | Synapse