3D model for optimising the communication topologies of iterated N-players prisoners' dilemma