Similar Items: Determining optimal primary sawing and ripping machine settings in the wood manufacturing chain