Two bugfixes and much more comprehensive test for QDigest.

Thanks to Michael Yahalom for pointing out the bugs.
Merge pull request #18 from jkff/master

Two bugs fixed in QDigest and better test for it.