Saving on memory in BST