Energy-efficient Memory System Design with Spintronics