Fix #771: make smoothstep(x,a,b) work if a > b

See https://github.com/photonstorm/phaser/issues/771