Find the survivor in a circularly linked list
Cleanupt and doc blocks and code formatting