A Heuristic Algorithm for the Reliability Optimization of a Distributed Communication Network