Modified Preorder Tree Traversal library for Kohana ORM.