Implement math#clamp

Closes #1.