midpoint circle drawing algorithm in c