Use new algorithm to calculate likelihoods

Uses new algorithm to gain fast speed up. To use, pass in "uX" for 0 s X
unk, and "sX" for 1 s X unk.