Improved computation of special leaves

Improved computation of trivial leaves, clustered easy leaves and sparse
easy leaves in the Deleglise-Rivat algorithm.