First step is to introduce the power mean.
Added in first tests, corrected error in handling of infinite power means!