Research on microscope autofocus algorithm