calculate coverage ratio for given bounding box and hash length