Intelligent Algorithms coursework, closed contours in MATLAB.