Deep Learning Method for Computing Committor Functions with Adaptive Sampling