Finding minimum and maximum in Binary Search Tree