A fast, flexible and space-effective database