homework for sorting problems - Zhou Yiren