Estimating the Hausdorff dimension