dogs can have been domesticated for thousands of years