Fixed all performance issues by adding "if (minTardiness == 0) break;"