Automated Knot Detection and Pairing for Wood Analysis in the Timber Industry