Spin torque magnetic integrated circuit