Cutting Logs to Timber for Maximum Yield