Agent-Based Model of the Black Plague