Add algorithm for finding circuits in graphs