Topcoder PatternOptimizer - first take