Dogs can actually understand humans, new study finds