New Seg Tree with Update and Query Functions (No Lazy Propagation though)