1. Creating an unique array
Ex. a[1 2 1 2 3 2 4 5 3 6] -->unique_array[1 2 3 4 5 6]
All the above programs have been worked out and saved here.