removing bug
add test case for singly linked list