commited from workpkace, finished refactoring for one
dimensional data.

Signed-off-by: Nicholas Tan Jerome <nicholas.jerome@kit.edu>