A railway having between its rails a rack that meshes with a gear wheel or pinion of the locomotive for traction on steep grades