Runtime Complexity
Tree construction: O(N) Query/Update: O(logN)
Space Complexity Total nodes: O(2n-1)