debugging and extending scan
new interface
Merge remote-tracking branch 'upstream/master'
fixed life time problem of scan arrays
refactored scan and reduce with a builder to remove duplicated code
Merge pull request #6 from degloff/master

new generic version of scan and reduce