Refactored smoothstep to MathHelpers