bm_matrix function

Mapper for matrix multiplication