task: generate n by n multiplication matrix