Added documentation.
Make the test for minbucket faster (O(1))