Algorithm for computing the moduli space of pointed Gorenstein curves with Weierstrass gap sequence \(1,2,\ldots,g-2,\lambda,2g-3\) Tetrahedron equation and quantum \(R\) matrices for spin representations of \(B^{(1)}_n\), \(D^{(1)}_n\) and \(D^{(2)}_{n+1}\) 