Add complete function to create a complete tree of a certain depth.