added is binary tree algorithm