C implementation of 2D GDT now pretty much finished. Unit tests written.