An Agent-based Model for the Pattern Formation in Drosophila Melanogaster