An Optical Flip-Flop Based on Erbium-Ytterbium Doped Fibre