Algorithm for computing the moduli space of pointed Gorenstein curves with Weierstrass gap sequence \(1,2,\ldots,g-2,\lambda,2g-3\) Transformation of a pair of commuting hamiltonians quadratic in momenta to canonical form and real partial separation of variables for the Clebsch top 