An Adaptive Packed-Memory Array (2007) [pdf]
www3.cs.stonybrook.edu
www3.cs.stonybrook.edu
See also http://dhruvbird.blogspot.de/2013/03/pma-packed-memory-array... who has his own implementation in C++
The older I get, the more I realize that the world runs on slop. The techies are optimizing everything and removing slop, but this slop has allowed systems to be resilient. A little "waste" goes a long way.