Using magnetic tunnel junctions to compute like the brain