Make writeToTable give the correct output suffix.
Major refactor of ST_ClosenessCentrality.