You are trying to insert an element into an array but thats not allowed you can assign a value to the array at any of the index.
E.g.
mergeList[j]=1;// at index j have the value 1