A Deterministic Algorithm for the Synthesis of Maximum Energy Recovery Heat Exchanger Network