growable array with tree