Algorithm for computing the moduli space of pointed Gorenstein curves with Weierstrass gap sequence \(1,2,\ldots,g-2,\lambda,2g-3\) On Bhargava's heuristics for \(\mathbf{GL}_2(\mathbb{F}_p)\)-number fields and the number of elliptic curves of bounded conductor 