Cubic Circle Generation Algorithm