Learning Algorithms And Data Structures For Massive Datasets