Prehistoric whales were dog-sized creatures with four legs and hooves