added connected components algorithm java implementation, including bfs ...

...algo