compare functions done
finished several functions in bst