Computes the Lp norm of an array of values.