removed generic clamp and moved clamp to GleanyMath