Problem "Connected Components" solved

http://rosalind.info/problems/cc/