Created Connected Components class