Implemented reddit style upvoting algorithm