What is a complex behavior that dogs inherited from wolves