linalg.norm does not take 'axis' in numpy < 1.8

Replaced `norm` with `sqrt(sum(power(x, 2)))` to get Travis tests pass
for numpy v1.5, v1.6