A compression algorithm for the combination of PDF sets