A new study reveals that our canine pals have memories linked to specific times and places like we do