added reddit upvote algorithm