A heuristic for multiple choice programming