Two more functions for LUA math module 

That hypot turned out to be a performance flop, but math.diag() might be an interesting alternative
I'm also surprized that clamp didn't exist