Implemented recursive iterator
removed unnecessary import