add seed, maxsubsum etc
delete sortingcode