calculates distances b/w all pairs of atoms, stores in symmetric matrix