Another good question. This comment comes from the original implementation but is not validated anywhere, maybe because the algorithm works in not valid ranges. I think is worth doing, I will add.