Added Grid class (and compiles), also maved "using namespace std" to mdpc.hpp so it's used everywhere.