initial code to detect if linked list has loop and to detect the loop start node if loop exists