Added methods for binary search tree