Create detect_circles.m

Added the detect_circles() code.