Algorithm for computing the moduli space of pointed Gorenstein curves with Weierstrass gap sequence \(1,2,\ldots,g-2,\lambda,2g-3\) Moduli space of hyperelliptic curves of genus two with level (2,4) structure and the special orthogonal group of degree three 