Added minor functionality to binary tree