Minimizing pocketing time by selecting most optimized chronology of tool passes