Homework for LAB4.

I solved 4.6.1 and 4.6.5(HW-1,HW-2). The printPrettyTree() function is terribly written, but it works.