Effects Of Size And Spin-Polarized Current On Magnetic Nanostructures