Use hypot(x, y) instead of sqrt(x*x, y*y)

This follows #184

`amcl` not covered because it fails to find `#include <cmath>`.