Add `initWithCapacity` initializer.