Computer simulation of passive mode-locking of dye lasers with consideration of coherent light-matter interaction