Prototype implementation of schedule_tree

All functions described in schedule_tree.rst are implemented, and the
document has been updated to reflect minor inconsistency that appeared
during implementation.