Evolution of dental patterns in the lower vertebrates