Add greatest common devisor.