Fixed log2 and log10

144 out of 153 test cases pass. log2 and log10 are replaced with logtwo
and logten so that implicit multiplication does not occur between "2" or
"10" and "(".