Great apes may have cognitive foundations for language