Magnetoresistive logic and biochip