changed source file structure, added basic data classes, added tree algorithms