The natural mechanism of memory formation