rankogram function

Generic function for rankograms