carlemils partial bst implementation.