Topological distance matrix

Calculates the topological distances between all atom pairs. Here a simple Breadth First Search (BFS ) is used to calculate these distances, which causes a running time of O(A3), where A is the number of atoms.