Refactor the code for Convert Sorted LinkedList to Binary Search Tree.