Change names of functions according to their data type.
Correct some errors and add binary search tree