Replace naive closure computation by Downing-Gallier

Signed-off-by: Daniel Borchmann <daniel.borchmann@mailbox.tu-dresden.de>