Fast Algorithms for Analyzing Partially Ranked Data