Renamed len1,len2 -> rows,cols