Cognitive functions and aging in the dog: acquisition of nonspatial visual tasks