Timber sawing optimization software for sawmills