Corrected bst to stop if first input is -9999