Optimization strategy of computer programming for mathematical algorithm of facial recognition model