implemented pointer-swap-function for intern swapping arrays
at add after inceased size of array