Added distance calculator. Calculates 1st permutation for test.