Use linked list for a radically simpler implementation.