Easing functions ported to PHP