Small but crucial change to the output format: it's now the same as the input format. This will significantly save on space for larger affinity matrices that are sparse.