Added test of quad edge data structure and fixed bugs.