Add a non-linear alignment function and compare linear-alignment vs. non-linear alignment in terms of precision and performance.