changed BstTree to use elements instead of nodes