Mathematical modeling of sperm and cilia motility