--- from: http://rosettacode.org/wiki/Problem_of_Apollonius note: arithmetic operations