Simple implementation of bidirectional list.