Improving the performance of a non-volatile magnetic flip flop by exploiting the spin Hall effect