Development of algorithm for optimum utilization of integrated services digital network and local area networks