using spin transfer effects or giant magnetoresistance