Hybrid sequential array, sparse array, and random-access hash