more efficient getDualValues code
incomplete heuristic A implementation