Changed transpose to be regularly coded instead of gsl