Added functions to SinglyLinkedList