update structure, create base class for integration, port integraledeterministico to more precise sum

Signed-off-by: Riccardo Iaconelli <riccardo@kde.org>