add BSTreeToList and StackWithMin