Added functions for mapped matrix multiplication