Iterative Algorithm | ScratchStats