Optimised easing func.