A computational tool to pipe network design