Optical Memory And Neural Networks