for (int i=0;i<maxDepth;i++){
for (int i=0;i<=maxDepth;i++){
    public void reset(){        for (int i=0;i<maxDepth;i++){            if (storage[i]!=null){                storage[i].clear();            }        }    }