Scientists use teeth to analyze evolution of whales walking