Non-linear Multidimensional Optimization for use in Wire Scanner Fitting