Updated SinglyLinkedList to work for delete and pass junits