RemoveFirstOccurrence, RemoveLastOccurrence for unrolled linked list