Add pop and fix length bug for linked list.