Use pre-allocated matrix multiplication to speed things up