updated matrix-matrix multiply and transpose operations. results in about 50% less memory usage and over 50% less cpu time for domain generation