a simple optimization in cmp_item_prob with great effect on the parser's speed