Added basic upvoting algorithm.

chapter13-1