Revised to handle multi-way combinations where there are more than two (up to 17) citations involved.