Can it be a linked list instead and use head-tail decomposition? Is that slower?