prtree: Small cleanups.
prtree: Improve cache locality during tree building.

This gives about a 25% speedup by storing the node color in a smaller
wrapper struct instead of inside the node itself.