Ternary multiplexer and encoder implementations using reconfigurable logic-in-memory cells | Synapse