Added types.h, changed auto types in loopgraph.cpp
Fixed iterator type