Calculate the n50 given some number of input values.