Your dog is twice as smart as a cat, and this study proves it