fixed cmakelist file to contain all source files + fix little compilation issue with Edge struct