Exact solution of Dirac equation in 2+1 dimensional gravity