Some engineering and mathematical aspects in the design of heavy goods railway lines