SOA Fiber Ring Laser-Based Three-State Optical Memory