my next try to better up my code

i implemented a random test for Alg2-5 with the lookup as the place to
check up my values.
i implemented another version of the formula given from the lecture,
and converted that function into using doubles for more accuracy.