convert sorted list to bst reimpl