Approximate Nearest Neighbors in C++/Python optimized for memory usage and loading/saving to disk