added function to check the loop in the linked list
Merge pull request #6 from rahulroot/code-0.6

added function to check the loop in the linked list