linked list looped and detected

All ways implemented!!!