adding i++ to remove in bintree