Fix computation of tmp_size for PixelType::WORD
Add heuristic to account for horizontal pass being slower than vertical pass
Cosmetics: put "lo" variables before "hi"
x86 optimized horizontal core for u16