Dlh upperbound optimization

Have optimized the upper bound on DLH by 3 to 4 times. The last two commits titled "Optimized x(1-x/c)" and "Optimized upper bound" are to be merged.