Data Structures and Algorithms for Big Databases