Changed the way realloc is called
Changed profiler to use the 11x11 grid