implemented draw circle algorithm