Fix issue#88, use sqrt of crypto length as grouping size

If I understand the issue correctly, I think this should probably fix it.