Building Efficient and Compact Data Structures for