code for ball mill sizing calculation