The Foundations of Magnetic Recording