put the creation of coords and indexes for the postprocessing in the
run() instead of in the computDistance function as it was slowing down
the creation of the distance matrix