Use hypot to do vector calculation.

Signed-off-by: Yan Wang <yan.wang@linux.intel.com>