Differences between hash table and BST