The development of an efficient algorithm for circular arc detection