refactored and extracted some easing functions' code in order to use (and receive from the user) easing functions like  y = f(x)