Generalizing row and column pivot applications to any data distribution.