Bare-bones lerp and smoothstep functions