Invia SMS: Structural design of memory system for Ternary Optical Computer