API: Use HDF5 in filter_distance_matrix.py

I've also made a few cosmetic changes :lipstick:
MAINT: Use load_table instead of context manager
Merge pull request #28 from ElDeveloper/filter_distance_matrix_hdf5

Filter distance matrix hdf5