New linked list related algorithms.