started implementing some gonality computations