Use pop/push vs shift/unshift in each_node
Use pop/push vs shift/unshift in each_node

While the performance difference between the old and new approach is
pretty much negligible, it's simply not needed to use #shift/#unshift
here.

Thanks to Mon_Ouie from the #ruby IRC channel for suggesting this.

YorickPeterse/oga,dfockler/oga,dfockler/oga,ttasanen/oga,ttasanen/oga,YorickPeterse/oga,dfockler/oga,dfockler/oga,ttasanen/oga,YorickPeterse/oga,YorickPeterse/oga,YorickPeterse/oga,dfockler/oga,ttasanen/oga,ttasanen/oga