Homework for Algo 2013