Development and implementation of an algorithm for detection of protein complexes in large interaction networks