Design of an Automatic Wood Trimming Machine