Fix some bugs in LinkedList and add some codes