Forest and Tree classes have been improved: separeted to different modules, exceptions, fix bugs