Add computation of max difference in result.
Obtain preffered workgroup size after the class is created, not during.