added transpose operation to Matrix