Text this: Quantum mechanical theory of memory