Skeleton code for double transposition.