Moved loop info map and loop set

Moved them to codegen.hpp as private members.
Also moved header files to codegen.hpp