Optimized 99 beers program by enhancing modularity