Added code for circular linked lists