Light storage in a tripod medium as a basis for logical operations