Paleontologists have discovered an ancient whale that had four legs and could walk on land