it is not needed, I believed that the original indexes of the array were not rearranaged because I thought I saw that they were not while testing, but I've tried in python independently and they seem to be. I'll remove it.