Magnetization switching in nanopillars with FePt alloys by spin-polarized current