Reshape A 3d Array To 2d Array