reduce number of benchmark iterations for larger matrices
add check for w*n and w*m