Cleaned up traces.
Fixed bucket management.

This prevents the program from crashing when the swaps are impossible to perform.
Reset metrics on breaks.
Major cleanup.

- Cleaned up unused code
- Factorized plotting of a single curve
- Created dedicated methods for algorithm comparison and for RH-backshift
- Made proper layout so that multiple curves can be plotting on a single
  image