cache of class combinations in genetic programming