Addes basic upvoting algorithm