Enhanced math.hypot() to support more than two dimensions.