cleanup
replace bitwise with logical AND
add gradient and orientation lookup table generator

Adds tool for generating 256 x 256 x 256 lookup
table with precalculated gradient and orientation
values

compile with: g++ -o lgen lgen.cpp
 MP_R: use lookup table for graient and orientation values

Uses precalculated lookup table to get
values for gradient and orientation maps