A Computational Model of Cognitive Maps: Analyzing Violent and Nonviolent Activity in Egypt and Germany. (March 2016)