Add support for algebraic variables

Signed-off-by: Christoph Höger <christoph.hoeger@tu-berlin.de>