deepList implementation