Implementation of a simulating code for heating and cooling networks for residential, commercial and tertiary buildings