pivot the dataset.

topMatches and similarities by item.