I am trying to perform a mergesort without actually rearranging the array. Let me explain a little better. Say I have an array:
3
5
6
7
0
4
1
2
If 5 (currently at index 1) gets moved to index 6 for example I need my program to remember the index of where 5 was originally stored. How can I remember the original index?