Implementing iterative clone method