exercises for Introduction to algorithems