dense and sparce matrix multiplication added