Fix bug in get_emp_cdf

This change is based on the definition of empirical cdf on wikipedia:
http://en.wikipedia.org/wiki/Empirical_distribution_function
The values are now in range (0, 1] instead of [0, 1).