im_w_of_x now using lookup tables, plus other little corrections and improvements suggested by Alexander Kleinsorge
To the best of my tests, none of these changes any floating-point outcome
To the best of my tests, none of these changes any floating-point outcome