A concept for nonvolatile memories