Reproductive memory for diagonal and nondiagonal patterns in chimpanzees