an O(n) solution for converting sorted list to shortest BST