implemented TreeObject\nUpdates key value by integer value passed in. See test for more details