Added genus() to singularities.py. (Untested.)

We can now compute the genus of an algebraic curve using
the delta invariants of its singularities. This function is
untested at the moment.