By using graphical display of array and selecting elements, rearrange them