program to find the transpose of a  matrix