Adding linked list loop check algos