week 12: more golfing
finished foldTree impl in terms of insert, height, and balanced