Implemented greedy predicate selectivity optimizer.