implement transpose to swap rows and columns of spread sheet