A molecular dynamics study of chemical gelation in a patchy particle model