In-memory mechanical computing | Synapse