added randomlines to main module
new unit test for spanning tree method (removing cycles from connected
components)