an implementation of an array structure that avoids putting objects on LOH