Self and identity as memory