modify a bug in my linked list
add a test case for stack, and format the code