Buddhism has a theory like that- its a little different though. It denies a soul or any person- it simply states the energy of our consciousness continues at a subtle level. From a certain perspective it makes us immortal , however since it denies any soul it also means we were never born to begin with- which is kind of a weird theory.