Log Bucking and Lumber Manufacturing Using Dynamic Programming