Started implementing the computation of the distance matrix.
Edited the computation of the distance matrix again.
Added a few debugging functionality.