Find cycles in a graph part1