pre-, in-, and post-order of binary tree traversal