Allow the user to choose the quantiles

Fixes #1