Minor change of implementation in the source and target array after
deletion of a node