Algorithm For Singly Linked List