io fixes in cg/io/segment.h
more tests + gtest instead of boost + some bugfixes in /cg/algo/intersection.h