Added connected components method
Changes to conn comp