Returns true if there is cycle in linked list