Solution to BST construct from sorted array