Fix ecdf bugs

Corrects output of ecdf in the case where there are no values in X
between two values in v and the case where all values in X were less
than multiple values in v.