Bayesian ranking of items with up and downvotes or 5 star ratings