It's not science fiction. Darpa, the government agency that helped create the Internet, is working on technology to restore lost memories.