Added implementation for binary search tree with or without duplicates