matrix multiplication both brute force and recursive