On Some Hash Functions: Constructing a randomized binary search tree and a hash table