This is my homework for the class of advanced algorithms.