calculates denom explicitly when computing p(i|iprime,L)
runner added