STT-MTJ Based Smart Implication for Energy-Efficient Logic-in-Memory Computing