Add CDF method

Resolves #5.