Refactor to use BLAS/LAPACK for all topology matrix construction steps (transposition and row reversal)