not needed anymore
disable assertions in Release builds
use Eigen template library for vector arithmetic
provide a sentinel entry in element list

when iterating over all elements, this avoids the need for special treatment of the last element