added most of hw2 and recursive-sort scaffolding