A memetic framework for describing and simulating spatial prisoner's dilemma with coalition formation