Working more on Princeton Algorithms II