setBST Function Midified

conditions updated