Automatic heuristic generation with genetic programming: evolving a jack-of-all-trades or a master of one