Still needs filtering and optimization, but it’s a first step.

On the to-do list:
- Implement filtering
- Optimize computation of derivatives
- Clean up code
- Make new keyboard shortcuts to play with tresholds
- Have a re-look at normal contours to fix ‘holes’ in contour lines