A simple implementation of a binary search tree in go
This package is just a simple way to use binaries search tries. For the moment this package can only work with integers.
var Tree bst.Node;
Tree.Insert(2) // Instead of 2 you can use any number you want
Tree.Remove(5) // Instead of 5 you can use any number you want
SmallestNumber := Tree.GetMin()
BigNumber := Tree.GetMax()
sort := Tree.Sort() // Return a sorted array
SortInv := Tree.SortInv() // returns a sorted array but backwards
check := Tree.Check(2) //Instead of 2 you can use any number you want