More chapter 5

Trees are just such a depressing topic to me for some reason. Let's do
more bit manip first, and we'll circle back to trees later.