fixed hypot and added tests for hypot