Adding non-linear optimization to AlignOSM