Added basic upvoting algorithm.