Implemented Circles algorithm