Using natural travel paths to infer and compare primate cognition in the wild