Algorithm For Singly Linked List Operations