Concerning #585: star coloring, bugfixing, optimization and unittests
Concerning #585: star coloring, preliminary ordering