Added RecommendationEngine.Pivot

Added RecommendationEngine.Pivot. Renamed some type arguments and
parameters.