bug fix in inmemconncomps

Solve Issue #29

https://github.com/GraphChi/graphchi-cpp/issues/29