bag+tree