Magnetic Memory: Fundamentals and Technology