Update the code of array difference

Updated the code of non indexed array difference