serial implementation with buffer
sequential testdata
first test with scaling
parallel version, not finished, not working
test for scaling
needs cleanup but commit of new structure with different cases