Tree and binary tree algorithm summary