Implemented lerp for scalar values