fixing memory leaks
some fixes and addition to greedy
huge problems with current planarity library