AN EXPERT SYSTEM FOR WOOD CLASSIFICATION AND GRADING