Introduce from argument for getDiffIndex

Sometimes it is not needed to start the diff from the beginning.