Implement Number#clamp to limit a number to specified min/max values

I hope there's place for this useful method in the SugarJS