implement the optimized unrolled linked list remove