circular linked list checker with examples.