Function to move an Array item to another position of that Array