Spintronic memory cells for neural networks