Probabilistic Models over Ordered Partitions with Applications in Document Ranking and Collaborative Filtering