Just like a fruit fly, a new algorithm never forgets old scents