Hilbert Series Algorithm from Roune. One can call it with system("hilbroune",i)