Added ability to calculate isolated blocks of distance matrix.
Fixed bugs in new implementation of get_distance.
Modified indexing ability to calculate isolated blocks of distance matrix: included offset on j index.