removed lookup table + fixed tabs

Testing showed that tables was more than 3x slower for some reason. See
http://ideone.com/ORnSdn