Removing tail element from list.