Restructured header/source

Moved include and added namespace definitions so that LBP code will compile
Fixed error with kernels

Attempted to fix error with gradient kernel initialization by moving it to the heap