factorie argmin template implemented. Now needs simple differentiating