global sort plus segreduce should work properly now
Merge branch 'master' of https://github.com/marcoeilers/thesis