H Regression and V Regression on Existing Rail Road Data

I am having a data set of Existing Rail Top Spot levels for a lenght of 2 Km;

Imported in Rail Track - Gometry Project as Cogo-Points. Now, I require auotmatic alignmnet fitting on rail spot levels in Horizontally and Vertically.

Would like to change Horizontal slew up to 50 mm and Vertically lift up to 50mm, for which Regression has to be carriedout.

Since, I dont have any existing other rail track data, except only Rail Top levels.

Could anybody please tell best way to proceed further. This excercise has to carried out for about 200 KM long Railroad.

Thanks in Advance,

LJIRao