Improved upvoting algorithm