simulation initialisation window now automatically chooses number of flags depending on the result of GraphPainter and whether the graph contains intersecting edges
modified memory accessor so now it accepts any Object and can be extended to customise it for Agents