Finished cycleDetect functions with passing tests
Merge pull request #11 from johnshiver/cycleDetect

Finished cycleDetect functions with passing tests