Assignment 7: sorting & Tree