Replace the stupid O(lgn * lgn) solution with a simpler O(lgn) solution to find the closest node in BST.