A biosensor based on magnetoresistance technology