Spin-transfer torque switching in magnetic tunnel junctions and spin-transfer torque random access memory | Synapse