Added basic upvoting algorithm