Implemented new thresholdslider-function

- Deletes fragemented graphs
- Doesn't need presorted arrays