Deleted unnecessary functions from tree.c since we did not use a red black tree