Matrix transposition with replicate (pure) and multiapply (fmap).