vizuaizing the bst candidate algorithm