A 2D array transposing function added to algorithms::
commented and tested