Nanomagnetism and Spintronics