add input/output format to reducer_full_majority_clustering