Implement minimization.
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>