generate two matrixes and multiply them