These endangered monkeys kept getting hit by cars. Scientists had a clever solution.