Some exercises from "Introduction to algorithm"