modified Gotoh for model alignment