Scat-sniffing dog helps save endangered primates