This returns an ideal generated by approximately count minors of size minorSize the matrix M.
i1 : R = QQ[x, y, z];