XS implementation for List::SomeUtils.