BasicStatisics.Percentile(double) updated so that if rank is 0 then do not try to correct for zero based array.  BasicStatistics.Median now throws ArithmeticException if N < 3