Fixes the order of operations in main.c

I don't even want to know how it was outputting correct results.
B can be transposed now.

It still doesn't make use of ldb.